<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			function souSuo(num){
				if(num==1){
					document.getElementById("s1").innerHTML="<img src='images/baidu_web.png' />";
					document.getElementsByTagName("form")[0].action="https://www.baidu.com";
				}
				if(num==2){
					document.getElementById("s1").innerHTML="<img src='images/google_web-444.png' />";
					document.getElementsByTagName("form")[0].action="https://www.google.com";
				}
				if(num==3){
					document.getElementById("s1").innerHTML="<img src='images/taobao_shopping-446.png' />";
					document.getElementsByTagName("form")[0].action="https://www.taobao.com";
				}
			}
			
		</script>
	
		<style type="text/css">
			#s1,#s2{
				float: left;
			}
		</style>
	</head>
	<body>
		<div id="s1" >
		<img src="images/baidu_web.png" >	
		</div>
		<div id="s2">
			<form action="" method="get">
				<input type="text" name="sousuo" style="height: 20px;" / ><input type="submit" name="button"  value="搜索" style="height: 25px;" />
				<input type="radio"  name="chose"  onclick="souSuo(1)" />百度
				<input type="radio"  name="chose"  onclick="souSuo(2)" />谷歌
				<input type="radio"  name="chose"  onclick="souSuo(3)" />淘宝
			</form>
		</div>
		
	</body>
</html>